package longcaisuyun.longcai.com.yiliubabalongcaisuyun;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.ViewGroup;
import android.webkit.WebView;
import android.widget.LinearLayout;
import android.widget.TextView;

import longcaisuyun.longcai.com.mystatic.publicUrl;



/**
 * Created by Administrator on 2016/5/31.
 */
public class CaoZuo_Inner extends Activity {
    TextView imageView5,tv_title;
    WebView wv_caozuo;
    LinearLayout ll_fanhui;
    String id,title;//手册
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.item_caozuo_click);
        View view = getWindow().getDecorView();
        // 适配工具将视图重新排布
        MyApplication.ScaleScreenHelper.loadView((ViewGroup) view);

        ll_fanhui = (LinearLayout) findViewById(R.id.fanhui_lin);
        tv_title= (TextView) findViewById(R.id.tv_title);
        wv_caozuo = (WebView) findViewById(R.id.wv_caozuoweb);

        ll_fanhui.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                CaoZuo_Inner.this.finish();
            }
        });
        //接值判断
        Intent intent = getIntent();
        id = intent.getStringExtra("itemcaozuoid");
        title=intent.getStringExtra("itemtitle");
        //设置webview
        String gonggaodizhi = publicUrl.caoZuoShouCe + "?id=" + id;
        wv_caozuo.loadUrl(gonggaodizhi);
        //设置标题
        tv_title.setText(title);
    }

}
